package rs.dalao.syc.index.service.impl;/*
 *   @author:Casin
 *   @date:2023/8/4
 *   @code:
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rs.dalao.syc.index.dao.persist.repository.IEncRepository;
import rs.dalao.syc.index.pojo.vo.*;
import rs.dalao.syc.index.service.IEncyclopediaService;

import java.util.List;

@Service
public class EncyclopediaServiceImpl implements IEncyclopediaService {
    @Autowired
    IEncRepository repository;


    @Override
    public List<DepartmentVO> selectDep() {
        return repository.selectDep();
    }

    @Override
    public List<EncContentListVO> selectByDepId(Long depId) {
        return repository.getEncContentList(depId);
    }

    @Override
    public List<EncOtherDocVO> getOtherDocByDep(Long depId) {
        return repository.getOtherDocByDep(depId);
    }

    @Override
    public List<EncDetailVO> selectByIdForDetail(Long articleId) {
        return repository.selectByIdForDetail(articleId);
    }

    @Override
    public List<HotDetailVO> selectEncHotDetail(Long depId){
        return repository.selectEncHotDetail(depId);
    }
}
